<template>
	<view class="body">
		<image src="../../../static/disabled.png" mode="aspectFit" class="img"></image>
		<view class="text">由于您在过去一分钟频繁操作，当前账号已被停止使用，如有疑问请联系客服。</view>
		<button type="primary" class='btn' @click="clear" :loading="loading">重新加载</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading: false
			}
		},
		
		methods: {
			clear(){
				this.loading = true;
				uni.removeStorage({
					key: 'custoken',
					success: function(v) {
						uni.showToast({
							title: "加载中，请稍后",
							icon: 'none',
							duration: 3000
						})
						window.location.href = "/api/single-sign-on-center/customer/acquireUserWxLogin/white";
						this.loading = false;
					}
				})
			}
		}
	}
</script>

<style>
	.body{
		width: 100%;
		height: 100%;
		position: absolute;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	.img{
		width: 60%;
		height: 30%;
		margin-top: -50%;
	}
	.text{
		font-size: 14px;
		line-height: 25px;
		margin: 20px 10%;
		color: #333333;
		text-indent: 28px;
	}
	.btn{
		width: 80%;
		height: 40px;
		line-height: 40px;
		letter-spacing: 1px;
		font-size: 14px;
	}
</style>
